package org.zhangyp.n01jdkapi.n03String;

/**
 *
 * @author zhangyp
 * @date 2023/6/21 17:26
 */
public class StringTest {
    public static void main(String[] args) {
        String s1 = new String("abc");
        String s2 = "abc";
        String s3 = "abc";
        System.out.println(s1 == s2);
        System.out.println(s2 == s3);
    }
}
